package org.jeecg.modules.sggg.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 血脂记录表
 * @Author: jeecg-boot
 * @Date: 2022-10-17
 * @Version: V1.0
 */
@Data
@TableName("sg_lipid_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "sg_lipid_record对象", description = "血脂记录表")
public class SgLipidRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableField(select = false)
    private String memberName;

    @TableField(select = false)
    private String memberPhone;

    @TableField(select = false)
    private String idCard;

    @TableField(select = false)
    private String avatar;

    @TableField(select = false)
    private String doctorName;

    @TableField(select = false)
    private String threeTag;

    @TableField(select = false)
    @ApiModelProperty(value = "血糖预警值")
    private String bloodWarning;

    @TableField(select = false)
    private Integer sex;

    @TableField(exist = false)
    private List<String> responsibleAgencies;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 总胆固醇
     */
    @Excel(name = "总胆固醇", width = 15)
    @ApiModelProperty(value = "总胆固醇")
    private Double totalCholesterol;
    /**
     * 甘油三酯
     */
    @Excel(name = "甘油三酯", width = 15)
    @ApiModelProperty(value = "甘油三酯")
    private Double triglyceride;
    /**
     * 低密度脂蛋白胆固醇
     */
    @Excel(name = "低密度脂蛋白胆固醇", width = 15)
    @ApiModelProperty(value = "低密度脂蛋白胆固醇")
    private Double ldlc;
    /**
     * 高密度脂蛋白胆固醇
     */
    @Excel(name = "高密度脂蛋白胆固醇", width = 15)
    @ApiModelProperty(value = "高密度脂蛋白胆固醇")
    private Double hdlc;
    /**
     * 测量时间
     */
    @Excel(name = "测量时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "测量时间")
    private Date measuringTime;
    /**
     * 居民编号
     */
    @Excel(name = "居民编号", width = 15, dictTable = "sg_member", dicText = "name", dicCode = "id")
    @Dict(dictTable = "sg_member", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "居民编号")
    private String memberId;
    /**
     * 是否干预(0干预1不干预)
     */
    @Excel(name = "是否干预(0干预1不干预)", width = 15, dicCode = "glucose_intervene")
    @Dict(dicCode = "intervene")
    @ApiModelProperty(value = "是否干预(0干预1不干预)")
    private Integer intervene;
    /**
     * 干预内容
     */
    @Excel(name = "干预内容", width = 15)
    @ApiModelProperty(value = "干预内容")
    private String interveneContent;
    /**
     * 干预内容
     */
    @Excel(name = "干预时间", width = 15)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date interveneTime;
    /**
     * 干预内容
     */
    @Excel(name = "干预医生", width = 15)
    @ApiModelProperty(value = "干预医生")
    private String interveneUser;
    /**
     * 设备编号
     */
    @Excel(name = "设备编号", width = 15)
    @ApiModelProperty(value = "设备编号")
    private String deviceId;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
}
